#ifndef _OCPP_GribVolume_H__
#define _OCPP_GribVolume_H__

#include "GribVarWrapper.h"

namespace OCPP
{
	namespace Volume
	{
		class _GribExport GribVolume : public CVolumeObject
		{
		public:
			GribVolume();
			~GribVolume();

			virtual bool convert(std::string filename);
			virtual bool convert(std::istream& sstream);

			void extract(String fileName,String outputPath);

		private:
			VolumeWrapper getVolumeVar(String varName, float offset, float scale, bool clip = true);
			VolumeWrapper getVolumeVarUV();
			bool setup(VolumeWrapper& volumeWrapper);
			GribWrapper gribWrapper;
		};
	}
}
	

#endif // !_GRIB_VOLUME_H__
